package ocl;


public class PathName extends OclExpression{

	SimpleName qualifier, path;
	
	public PathName(SimpleName simpleName, SimpleName simpleName2) {
		qualifier = simpleName;
		path = simpleName2;
	}

	public PathName(SimpleName string) {
		this(null, string);
	}

	@Override
	public String toK() {
		if (qualifier == null)
			return path.toK();
		
		return qualifier.toK() + ":" + path.toK();
	}
}
